//
//  FQDRadarView.h
//  FakeQDaily
//
//  Created by mewxiv on 9/26/16.
//  Copyright © 2016 Xensius. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <UIKit/UIKit.h>

@protocol FQDRadarViewDelegate <NSObject>

- (void)didTouchedCaption:(NSString *)caption atIndex:(NSInteger)index;

@end

@interface FQDRadarPolygonElement : NSObject

@property (nonatomic, strong) NSArray *valueList;
@property (nonatomic, strong) UIColor *fillColor;
@property (nonatomic, strong) UIColor *strokeColor;
@property (nonatomic, strong) UIColor *dotOuterColor;
@property (nonatomic, strong) UIColor *dotInnerColor;
@property (nonatomic, assign) BOOL drawDots;

@end

@interface FQDRadarView : UIView

@property (nonatomic, assign) CGFloat radius;
@property (nonatomic, assign) CGFloat minValue;
@property (nonatomic, assign) CGFloat maxValue;
@property (nonatomic, assign) CGPoint centerPoint;
@property (nonatomic, strong) UIFont *captionFont;
@property (nonatomic, strong) UIColor *captionFontColor;
@property (nonatomic, weak) id<FQDRadarViewDelegate> delegate;

@property (nonatomic, strong) NSArray *captionList;
@property (nonatomic, strong) NSArray<FQDRadarPolygonElement *> *polygonElements;


@end
